<?php echo $this->Html->script(array('users.view','actions'),$options = array('allowCache'=>false,'safe'=>false,'inline'=>false));?>
<?php echo $this->Html->css(array('users.view','lastminute-left','search-left','form','actions'),null,array('inline'=>false));?>


<div class="content">
	<div class="left-column">
		
		<?php echo $this->Yachts->search_form_left();?>		
		<div class="clr"></div>	
		<?php echo $this->Yachts->lastminute(2);?>
		<div class="clr"></div>	
	</div>
	<div class="middle-column main-column">
		<div class="box corners">
			<h2><?php echo __('My charters')?></h2>
			<table width="100%" style="padding-top:0px; margin: 0px;" cellpadding="0" cellspacing="0">
				<tr>
					<td><?php echo __('Custommer',true)?></td><td><?php echo $this->data['User']['first_name']?> <?php echo $this->data['User']['last_name']?></td>
				</tr>
				<tr>
					<td><?php echo __('Email',true)?></td><td><?php echo $this->data['User']['email']?></td>
				</tr>
				<tr>
					<td><?php echo __('Phone',true)?></td><td><?php echo $this->data['User']['phone1']?></td>
				</tr>

			</table>
		
			<div id="tabs-related-1">
				<?php 
					if (!empty($this->data['VidYachtCharter'])){
						$i = 0;
						foreach ($this->data['VidYachtCharter'] as $yachtCharter){
							$class = null;
							if ($i++ % 2 == 0) {
								$class = ' class="altrow"';
							}
							
							
							echo $this->element('user_charters_row',array('vidYacht'=>$yachtCharter,'class'=>$class));
						}
					}
				?>				
			</div>		
			
		</div>
	</div>
	
	
	<div class="right-column">
		<?php echo $this->element('user_main_left_menu')?>

	</div>
	
</div>


<?php if($session->check('Auth.User.id') && $this->Session->read('Auth.User.group') == 'admin' || $session->check('Auth.User.id') && $this->Session->read('Auth.User.group') == 'manag'){?>
	<div class="actions main_actions">
		<h3><?php __('Actions'); ?></h3>
		<ul>
			<li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('User.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('User.id'))); ?></li>
			<li><?php echo $this->Html->link(__('List Users', true), array('action' => 'index'));?></li>
	
			<li><?php echo $this->Html->link(__('New User', true), array('action' => 'add_user')); ?> </li>
			<li><?php echo $this->Html->link(__('List Yacht Charters', true), array('controller' => 'yacht_charters', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('New Yacht Charter', true), array('controller' => 'yacht_charters', 'action' => 'add')); ?> </li>
		</ul>
	</div>
<?php }?>	

<div class="clr"></div>
